package com.orion.util;

import org.springframework.http.MediaType;

import javax.servlet.http.HttpServletResponse;
import java.nio.charset.StandardCharsets;

/**
 * @author Administrator
 * @date 2021/10/9
 */
public class ResponseUtil {

    public static HttpServletResponse jsonResp(HttpServletResponse response){
        response.setContentType(MediaType.APPLICATION_JSON_VALUE);
        response.setCharacterEncoding(StandardCharsets.UTF_8.name());
        return response;
    }
}
